package com.itheima.stringbuilderdemo;

import java.util.Scanner;

public class StringBuilderDemo02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字：");
        String str1 = sc.next();
        String str2 = new StringBuilder().append(str1).reverse().toString();
        System.out.println(str1.equals(str2));
    }
}
